<div id="sidebar">
  <div class="cog">+</div>
  <br />
  <a href="http://www.esoftdream.net" target="_blank" class="logo"><span>Esoftdream</span></a>
  <br />

  <?php
  if(file_exists(Yii::app()->params['config']['updir']['admin'].Yii::app()->user->administrator_image)) {
      $administrator_image = Yii::app()->user->administrator_image;
  }
  else {
      $administrator_image = 'default.jpg';
  }
  ?>
  <div class="user_box round_all clearfix">
    <img src="<?php echo Yii::app()->params['config']['dir']['admin'].$administrator_image; ?>" width="55" alt="Profile Pic" />
    <h2><?php echo Yii::app()->user->administrator_group_title; ?></h2>
    <h3><a class="text_shadow" href="<?php echo Yii::app()->baseUrl; ?>/admin/configuration/user/view?id=<?php echo Yii::app()->user->administrator_id; ?>"><?php echo Yii::app()->user->administrator_name; ?></a></h3>
    <ul>
      <li><a href="<?php echo Yii::app()->baseUrl; ?>/admin/configuration/user/update?id=<?php echo Yii::app()->user->administrator_id; ?>">settings</a><span class="divider">|</span></li>
      <li><a href="<?php echo Yii::app()->baseUrl; ?>/admin/logout">logout</a></li>
    </ul>
  </div>
  <!-- #user_box -->

  <?php
  $this->widget('zii.widgets.CMenu', array(
    'items'=>$this->menu,
    'id' => 'accordion',
    'htmlOptions'=>array('class'=>'round_all'),
  ));
  ?>
</div>
<!-- #sidebar -->